﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace NetFrameworkExtensions.Utils
{
  public class ValueReadonlyReference<T> :
    ReadonlyReferenceBase<T>
  {
    T value;

    public ValueReadonlyReference(T value)
    {
      this.value = value;
    }

    public override T Value
    {
      get { return value; }
    }

    public override bool CanChange
    {
      get { return false; }
    }
  }
}
